package com.jason.quectel0805.adapters;

import java.util.List;

import androidx.annotation.NonNull;
import androidx.fragment.app.Fragment;
import androidx.fragment.app.FragmentManager;
import androidx.fragment.app.FragmentStatePagerAdapter;

/**
 * @author：Jason
 * @date：2022/8/9 15:14
 * @email：1129847330@qq.com
 * @description:
 */
public class WeChatAdapter extends FragmentStatePagerAdapter {
    private List<Fragment> list;

    public WeChatAdapter(@NonNull FragmentManager fm, List<Fragment> list) {
        super(fm);
        this.list = list;
    }

    @NonNull
    @Override
    public Fragment getItem(int position) {
        return list.get(position);
    }

    @Override
    public int getCount() {
        return list.size();
    }

    //@Override
    //public void destroyItem(@NonNull ViewGroup container, int position, @NonNull Object object) {
    //
    //}

    //@Override
    //public int getItemPosition(@NonNull Object object) {
    //    return POSITION_NONE;
    //}

    //@Nullable
    //@Override
    //public Parcelable saveState() {
    //    return null;
    //}
    //
    //@Override
    //public void restoreState(@Nullable Parcelable state, @Nullable ClassLoader loader) {
    //
    //}
}